package com.mathdroid.model.abilities.specs.sniper;

import com.mathdroid.model.abilities.Ability;
import com.mathdroid.model.enums.EDmgType;

public final class InterrogationProbe extends Ability {

	/**
	 * Generated UID.
	 */
	private static final long serialVersionUID = -2308340218286747257L;

	public InterrogationProbe() {
		this.setName("Interrogation Probe");
		this.setRequiredTalent("Interrogation Probe");
		this.setIconName("sonicprobe");
		this.setResource("Energy");
		this.setCost(20d);
		this.setCooldownMs(18000d);
		this.setPeriodicDamageType(EDmgType.ENERGY);
		
		this.setStandardHealthPercentMax(0.055);
		this.setStandardHealthPercentMin(0.055);
		this.setCoefficient(0.55);
		
		this.setPeriodicInterval(3000d);
		
		this.setTrainableLevel(20);
	}
	
	@Override
	public String getDescription() {
		return "Summons an interrogation probe that clings to the target " +
			"and deals " + this.getMinPeriodic() 
			+ " energy damage over 18 seconds.";
	}

	@Override
	public double getMinPeriodic() {
		return
			this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
		
			+ this.getStandardHealthPercentMin() 
			* this.getStdDmg();
	}

	@Override
	public double getMaxPeriodic() {
		return this.getMinPeriodic();
	}

	@Override
	public double getMinDirect() {
		return 0d;
	}

	@Override
	public double getMaxDirect() {
		return 0d;
	}

}
